{* customers authorization form *}

{if $log ne ""}

	{* logout link *}
	<table width="100%">
	  <tr>
		<td align="center">
		<br><br>
			<a class="olive" href="index.php?logout=yes">{$smarty.const.LOGOUT_LINK}</a>
		<br><br><br>
		</td>
	  </tr>
	</table>

{else}

	{* authorization form *}

	<table cellspacing=2>
	<form action="index.php" method=post>
        <input type="hidden" name="enter" value="1">
        <tr>
            <td align=right><font class="olive">{$smarty.const.CUSTOMER_LOGIN}</font></td>
            <td><input type="text" class="login" name="user_login" size=10></td>
            <td align="center" rowspan="2"><input type="submit" value="{$smarty.const.OK_BUTTON}" /></td>
        </tr>
        <tr>
            <td align=right><font class="olive">{$smarty.const.CUSTOMER_PASSWORD}</font></td>
            <td><input name="user_pw" class="login" type="password" size=10></td>
        </tr>
		{if $productID}  <input type=hidden name=productID value="{$productID}"> {/if}
		{if $categoryID} <input type=hidden name=categoryID value="{$categoryID}"> {/if}

	</form>
	</table>

<a href="index.php?register=yes" class="olive">{$smarty.const.REGISTER_LINK}</a>
<a href="index.php?logging=yes" class="olive">{$smarty.const.FORGOT_PASSWORD_LINK}</a>
{/if}